import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var TreeGridComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(TreeGridComponentViewmodel, _super);
    function TreeGridComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/';
        _this.dom = {};
        return _this;
    }
    TreeGridComponentViewmodel.prototype.LoadTree1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.LoadCard1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.AddSibling1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.AddChild1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.Remove1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.treegridcomponentviewmodelloadFullTree1 = function (commandParam) { return; };
    TreeGridComponentViewmodel.prototype.treegridcomponentviewmodelLoadFullTreeChildren1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'LoadTree1',
            params: {
                filter: '',
                sort: ''
            },
            paramDescriptions: {
                filter: { type: 'string' },
                sort: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "LoadTree1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'LoadCard1',
            params: {}
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "LoadCard1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'AddSibling1',
            params: {
                siblingId: '{DATA~/#{tree-grid-component}/id}',
                transitionAction: 'Create'
            },
            paramDescriptions: {
                siblingId: { type: 'string' },
                transitionAction: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "AddSibling1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'AddChild1',
            params: {
                parentId: '{DATA~/#{tree-grid-component}/id}',
                transitionAction: 'Create'
            },
            paramDescriptions: {
                parentId: { type: 'string' },
                transitionAction: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "AddChild1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'Remove1',
            params: {
                id: '{DATA~/#{tree-grid-component}/id}',
                successMsg: ''
            },
            paramDescriptions: {
                id: ɵ0,
                successMsg: { type: '' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "Remove1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'treegridcomponentviewmodelloadFullTree1',
            params: {
                virtualPropertyName: 'zjzzfield',
                fullTreeType: '0',
                loadType: '1',
                currentId: '',
                filters: '[{"filterField":"sszz","value":"zijinzz","lbracket":"","rbracket":"","relation":"2","compare":"8","expresstype":0},{"filterField":"sszz","value":"zijinzz","lbracket":"","rbracket":"","relation":"2","compare":"7","expresstype":0},{"filterField":"sszz","value":"zijinzz","lbracket":"","rbracket":"","relation":0,"compare":"6","expresstype":0}]',
                frozenCurrentRow: 'true'
            },
            paramDescriptions: {
                virtualPropertyName: { type: 'string' },
                fullTreeType: { type: 'string' },
                loadType: { type: 'string' },
                currentId: { type: 'string' },
                filters: { type: 'string' },
                frozenCurrentRow: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "treegridcomponentviewmodelloadFullTree1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'treegridcomponentviewmodelLoadFullTreeChildren1',
            params: {
                commandName: 'treegridcomponentviewmodelloadFullTree1',
                frameId: 'tree-grid-component'
            },
            paramDescriptions: {
                commandName: { type: 'string' },
                frameId: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], TreeGridComponentViewmodel.prototype, "treegridcomponentviewmodelLoadFullTreeChildren1", null);
    TreeGridComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], TreeGridComponentViewmodel);
    return TreeGridComponentViewmodel;
}(ViewModel));
export { TreeGridComponentViewmodel };
export { ɵ0 };
